package ru.sushka.lunch.enitiy;

import java.util.Calendar;

public class MenuItem implements Persistentce {
    
    private int id;
    private int courseId;
    private Calendar date;
    @Override
    public int getId() {
        return this.id;
    }

    @Override
    public void setId(int id) {
        this.id = id;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public Calendar getDate() {
        return date;
    }

    public void setDate(Calendar date) {
        this.date = date;
    }

    public MenuItem(int courseId, Calendar date) {
        this.id = 0;
        this.courseId = courseId;
        this.date = date;
    }

    @Override
    public String toString() {
        return "MenuItem [id=" + id + ", courseId=" + courseId + ", date="
                + date + "]";
    }

}
